package org.yray.io.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.yray.io.vo.ResultVo;

@RestController("test1")
@RequestMapping("/test1")
public class Test1Controller {

    @GetMapping("/testGet")
    public String testGet()
    {
        return "testGet";
    }

    @GetMapping("/testPost")
    public String testPost(@RequestParam("filePath")String filePath)
    {
        return filePath;
    }

    @GetMapping("/testResultVo")
    public ResultVo testResultVo()
    {
        return new ResultVo(1);
    }
}
